<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<script>
		let obj = {
			a: 10,
			name: 'zs',
			age: 18,
			gender: 'man'
		}
		// Object.keys() // 对象的键们, 将一个对象的key收集到一个数组中
	console.log(Object.keys(obj).sort());
	console.log(Object.values(obj));
// Object.values() // 对象的值们, 将一个对象的value收集到一个数组中
	</script>
</body>

</html>